package com.bw.controller;

import com.bw.domain.User;
import com.bw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author bobo棒
 * @date 2024年05月23日 16:21
 */

@RestController
public class UserController {
    @Autowired
    UserService service;

    @RequestMapping("list")
    public List<User> list(){

        return service.list();
    }

    @RequestMapping("test")
    public String  test(){

        return "9999";
    }
}
